import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SYSTEM: AppRouteRecordRaw = {
	path: '/sys',
	name: 'sys',
	component: DEFAULT_LAYOUT,
	meta: {
		locale: '系统管理',
		ignoreCache: true,
		requiresAuth: true,
		icon: 'icon-settings',
		order: 2,
		roles: 'system:system',
	},
	children: [
	{
			path: 'organization',
			name: 'organization',
			component: () =>
				import('@/views/system/organization/index.vue'),
			meta: {
				locale: '组织管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:organization',
				// 
			},
		},
	{
			path: 'teacher',
			name: 'teacher',
			component: () =>
				import('@/views/user/index.vue'),
			meta: {
				locale: '用户管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:teacher',
			},
		},
		{
			path: 'major',
			name: 'major',
			component: () =>
				import('@/views/system/major/index.vue'),
			meta: {
				locale: '专业管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:major',
				
			},
		},
		{
			path: 'role',
			name: 'role',
			component: () =>
				import('@/views/system/role/index.vue'),
			meta: {
				locale: '角色管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:role',
				
			},
		},
		{
			path: 'permission',
			name: 'permission',
			component: () =>
				import('@/views/system/permission/index.vue'),
			meta: {
				locale: '权限管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:permission',
				// 
			},
		},
		{
			path: 'dictType',
			name: 'dictType',
			component: () =>
				import('@/views/system/dict/type.vue'),
			meta: {
				locale: '字典类型管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:dict:type',
				// sys:dict:type
			},
		},
		{
			path: 'dictData',
			name: 'dictData',
			component: () =>
				import('@/views/system/dict/data.vue'),
			meta: {
				locale: '字典管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:dict:data',
			},
		},
		{
			path: 'loginlogs',
			name: 'loginlogs',
			component: () =>
				import('@/views/system/logs/login.vue'),
			meta: {
				locale: '操作日志',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:logs',
			},
		},
		// {
		// 	path: 'operlogs',
		// 	name: 'operlogs',
		// 	component: () =>
		// 		import('@/views/system/logs/oper.vue'),
		// 	meta: {
		// 		locale: '操作日志',
		// 		ignoreCache: true,
		// 		requiresAuth: true,
		// 		hideInMenu: true,
		// 		roles: 'sys:logscz',
		// 	},
		// },
	],
};

export default SYSTEM;